package com.googlecode.gwtbb.client.only.remote;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.googlecode.gwtbb.client.only.GwtUtils;

/**
 * @author Abraham Grief
 * @version $Id$
 * @since Jul 31, 2008
 */
public class NoCallback implements AsyncCallback {
	private static final NoCallback instance = new NoCallback();

	public static NoCallback instance() {
		return instance;
	}

	public void onFailure(Throwable caught) {
		GwtUtils.handleFailure(caught);
	}

	public void onSuccess(Object result) {
	}
}
